@import './element-ui-reset';

// 宽度
.w-100 {
    width: 100%;
}

//@import "../fonts/iconfont.css";
// 字号
.ft-14 {
    font-size: 14px;
}

.ft-16 {
    font-size: 19px;
}

.ft-40 {
    font-size: 30px !important;
    font-weight: 400 !important;
}

// 字色
.c-white{
    color: #fff;
}
.c-error {
    color: #d12828;
}

.c-success {
    color: #00b24b;
}

/**
 公共的设置
*/
body,
ul,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    font-size: 12px;
    font-family: '微软雅黑', Avenir, Helvetica, Arial, sans-serif;
}

ul li {
    list-style: none;
}

textarea {
    font-family: '微软雅黑', Avenir, Helvetica, Arial, sans-serif;
}

//flex 布局和 子元素 对其方式
@mixin flex($type: space-between) {
    display: flex;
    justify-content: $type;
    align-items: center;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-between {
    justify-content: space-between;
}

.flex-sb {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.flex-c {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-column {
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.flex-right {
    display: flex;
    justify-content: flex-end;
}

.flex-start {
    justify-content: start;
}

.float-l {
    float: left;
}

.float-r {
    float: right;
}

.pt-10 {
    padding-top: 10px;
}

.pt-20 {
    padding-top: 20px;
}

.pt-35 {
    padding-top: 35px;
}

//=========内外边距==========
.margin-lr-10 {
    margin-left: 10px;
    margin-right: 10px;
}

.margin-t-10 {
    margin-top: 10px;
}

.margin-b-10 {
    margin-bottom: 10px;
}

.margin-t-20 {
    margin-top: 20px;
}

.margin-l-20 {
    margin-left: 20px;
}

.margin-r-20 {
    margin-right: 20px;
}

.mt-15 {
    margin-top: 15px;
}
.mt-30 {
    margin-top: 30px;
}
.ml-10 {
    margin-left: 10px;
}

.ml-20 {
    margin-left: 20px;
}

.ml-30 {
    margin-left: 30px;
}
.mr-30 {
    margin-right: 30px;
}
.my-10 {
    margin: 10px 0;
}

.my-15 {
    margin: 15px 0;
}

.mx-10 {
    margin: 0 10px;
}

.mx-15 {
    margin: 0 15px;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}
.mb-30 {
    margin-bottom: 30px;
}
.padding-bottom-20 {
    padding-bottom: 20px;
}

.pl-5 {
    padding-left: 5px;
}

.pl-10 {
    padding-left: 10px;
}

.pl-20 {
    padding-left: 20px;
}

.p-around-10 {
    padding: 10px;
}

//=========字体=======
.font-bold {
    font-weight: bold;
}

//========文本=========
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

// 列表页tabs中的返回按钮样式
.level-list {
    position: relative;

    .back-btn {
        position: absolute;
        right: 20px;
        top: 5px;
    }
}

.emptyText {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: $fontb4b4b4;
    font-size: 14px;
}

::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 6px;
    /*高宽分别对应横竖滚动条的尺寸*/
    height: 6px;
}

::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: #6F97F6;
}

::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background: #EDEDED;
}

.echart-h {
    height: 400px;
}

.el-button[data-none-border],
.el-button[data-btn] {
    border-radius: 0;
}

.el-button[data-btn] {
    background: #093870;
    font-size: 14px;
    border: none;
    color: #fff;

    &:hover {
        background: #0869e1;
    }

    &:active {
        background: #093870;
    }
}

.w-160 {
    width: 165px;
}
.w-95 {
    max-width: 95%;
    word-break: break-all;
}

.text-red{
    color:rgb(236, 13, 13);
    font-weight: bold;
    font-size: 14px;
}

.echart{
    position: relative;
    .echart-nodata{
        position: absolute;
        z-index: 2;
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }
}

.my-select {
    .el-cascader__dropdown,
    .el-popper[x-placement^="bottom"] {
        background: #fff !important;
        border: none;
    }
}